package org.kgc.alanhealth.entity;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName hospital_article
 */
@Data
public class HospitalArticle implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 对应二级菜单id
     */
    private Integer antiid;

    /**
     * 文章标题
     */
    private String antititle;

    /**
     * 文章内容
     */
    private String anticontent;

    /**
     * 
     */
    private Integer study;

    /**
     * 
     */
    private String encyclopediaspicture;

    /**
     * 
     */
    private Date encyclopediasdate;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HospitalArticle other = (HospitalArticle) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAntiid() == null ? other.getAntiid() == null : this.getAntiid().equals(other.getAntiid()))
            && (this.getAntititle() == null ? other.getAntititle() == null : this.getAntititle().equals(other.getAntititle()))
            && (this.getAnticontent() == null ? other.getAnticontent() == null : this.getAnticontent().equals(other.getAnticontent()))
            && (this.getStudy() == null ? other.getStudy() == null : this.getStudy().equals(other.getStudy()))
            && (this.getEncyclopediaspicture() == null ? other.getEncyclopediaspicture() == null : this.getEncyclopediaspicture().equals(other.getEncyclopediaspicture()))
            && (this.getEncyclopediasdate() == null ? other.getEncyclopediasdate() == null : this.getEncyclopediasdate().equals(other.getEncyclopediasdate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAntiid() == null) ? 0 : getAntiid().hashCode());
        result = prime * result + ((getAntititle() == null) ? 0 : getAntititle().hashCode());
        result = prime * result + ((getAnticontent() == null) ? 0 : getAnticontent().hashCode());
        result = prime * result + ((getStudy() == null) ? 0 : getStudy().hashCode());
        result = prime * result + ((getEncyclopediaspicture() == null) ? 0 : getEncyclopediaspicture().hashCode());
        result = prime * result + ((getEncyclopediasdate() == null) ? 0 : getEncyclopediasdate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", antiid=").append(antiid);
        sb.append(", antititle=").append(antititle);
        sb.append(", anticontent=").append(anticontent);
        sb.append(", study=").append(study);
        sb.append(", encyclopediaspicture=").append(encyclopediaspicture);
        sb.append(", encyclopediasdate=").append(encyclopediasdate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}